home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96a.txt / 000164_icon-group-sender _Mon Jul 29 15:54:02 1996.msg < prev    next >
Internet Message Format  |  1996-09-05  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Mon, 29 Jul 1996 11:17:01 MST
  2. Message-Id: <31FCD08A.55DC@tees.ac.uk>
  3. Date: Mon, 29 Jul 1996 15:54:02 +0100
  4. From: Hamish Lawson <H.Lawson@tees.ac.uk>
  5. Organization: University of Teesside
  6. X-Mailer: Mozilla 3.0b5aGold (Win95; I)
  7. Mime-Version: 1.0
  8. To: icon-group@cs.arizona.edu
  9. Subject: Optional expressions
  10. References: <9606221325.AA26435@ursus.cs.arizona.edu> <31D3FA40.1435@tees.ac.uk>
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. Errors-To: icon-group-errors@cs.arizona.edu
  14. Status: O
  15.  
  16. What is the Icon idiom for making one of a series of conjoined
  17. expressions optional? Let's say I have the following series of
  18. expressions
  19.  
  20.    e1 & e2 & e3 & e4
  21.  
  22. and I want e3 to be evaluated if possible but not to cause the failure
  23. of the enclosing expression. In a string scanning context I've resorted
  24. to
  25.  
  26.    e1 & e2 & e3 | move(0) & e4
  27.  
  28. but this feels kind of ugly to me.
  29.  
  30. | Hamish Lawson, School of Computing and Mathematics, 
  31. | University of Teesside, Middlesbrough, Cleveland, UK, TS1 3BA 
  32. | Tel: +44 1642 212695  Fax: +44 1642 342604
  33. | E-mail: H.Lawson@tees.ac.uk
  34.